package com.iquizoo.webflux.mvcstyle.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author: wangkui
 * @date: 2018/11/1 21:30
 * @desc:
 */
@Data
@Document(collection = "user")
public class User {
    @Id
    private String id;

    private String name;

    private Integer age;
}
